package com.fw.ui.util.comparator;

import java.util.Comparator;

import com.fw.ui.view.common.util.TableHeaderProperty;

public class TableHeaderComparator implements Comparator<TableHeaderProperty> {

    @Override
    public int compare(TableHeaderProperty o1, TableHeaderProperty o2) {
	if (o1.getOrder() == null || o2.getOrder() == null) {
	    return 0;
	}
	return o1.getOrder().compareTo(o2.getOrder());
    }
}
